// 导入定义验证规则的包
const Joi = require("joi");
const nick_name = Joi.string()
  .min(1)
  .required()
  .error(new Error("请填写要修改的队伍昵称"));

// 校验修改队伍昵称的处理模块
exports.reg_nickName_schema = {
  body: {
    nick_name,
  },
};
